# 先实例化一个对象
import requests


session = requests.session()

headers = {
        'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36"
}


url = 'http://api.bilibili.com/x/web-interface/web/channel/multiple/list?channel_id=8564&sort_type=new&page_size=30'
response = session.get(url, headers=headers) 
result = response.json()
print(result)